package com.aptemo.webetek.client.commands.impl;

import com.aptemo.webetek.client.commands.Action;
import com.aptemo.webetek.client.commands.responses.ListResponse;
import com.aptemo.webetek.client.enums.EnumTeamOrdering;
import com.aptemo.webetek.shared.TeamBean;

public class GetTeamsAction implements Action<ListResponse<TeamBean>>
{

	private boolean				isPublic;
	private String				nameFilter;
	private EnumTeamOrdering	order;

	protected GetTeamsAction()
	{
	}

	public GetTeamsAction(boolean isPublic)
	{
		this(isPublic, EnumTeamOrdering.DATE_ASC);
	}

	public GetTeamsAction(boolean isPublic, EnumTeamOrdering order)
	{
		super();
		this.isPublic = isPublic;
		this.order = order;
	}

	public String getNameFilter()
	{
		return nameFilter;
	}

	public void setNameFilter(String nameFilter)
	{
		this.nameFilter = nameFilter;
	}

	public boolean isPublic()
	{
		return isPublic;
	}

	public void setPublic(boolean isPublic)
	{
		this.isPublic = isPublic;
	}

	public EnumTeamOrdering getOrder()
	{
		return order;
	}

}
